﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LotteryVote.Logic;

namespace LotteryVote
{
    public partial class SuperReport : System.Web.UI.Page
    {
        int UserId { get; set; }
        SettleResultFacade SRFacade = new SettleResultFacade();
        protected void Page_Load(object sender, EventArgs e)
        {
            InitParams();
        }

        void InitParams()
        {
            UserId = int.Parse(Request.QueryString["UserId"]);
            rpt_report.DataSource = SRFacade.GetSettleResult(UserId,DateTime.Today);
            rpt_report.DataBind();
        }
    }
}